"use strict";
const mongoose = require("mongoose");
let schema = null;
const def = require("../utils/db").def;
const createSchema = function() {
	const checkInPrototype = {
		participant: def.string,
		sex: def.string,
		phone: def.string,
		company: def.string,
		position: def.string,
		date: {
			type: Date,
			default: Date.now
		}
	};
	schema = new mongoose.Schema(checkInPrototype);
};

const createIndex = function() {};

createSchema();
createIndex();
mongoose.model("CheckIn", schema);